package com.wdd.libarouter.impl

import android.content.Context
import com.alibaba.android.arouter.facade.Postcard
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.facade.service.PretreatmentService
import com.wdd.libarouter.config.ArouterPathConfig

/**
 *
 * @ProjectName:    OwnTool
 * @Package:        com.wdd.libarouter.impl
 * @ClassName:      PretreatmentServiceImpl
 * @Description:     java类作用描述
 * @Author:         王丹丹
 * @CreateDate:     2019/12/3 15:48
 * @UpdateUser:     更新者
 * @UpdateDate:     2019/12/3 15:48
 * @UpdateRemark:   更新说明
 * @Version:        1.0
 */
@Route(path = ArouterPathConfig.PRE_SERVICE_PATH)
class PretreatmentServiceImpl : PretreatmentService {
    override fun onPretreatment(context: Context?, postcard: Postcard?): Boolean {
        // 跳转前预处理，如果需要自行处理跳转，该方法返回 false 即可
        return true
    }

    override fun init(context: Context?) {
    }
}